Implement Gloas withdrawals and refactor#8692
Conversation
|
This is passing the Gloas spec tests, but there's still some more polish I'd like to apply before merging. |
| payload: Payload::Ref<'_>, | ||
| spec: &ChainSpec, | ||
| ) -> Result<(), BlockProcessingError> { | ||
| if state.fork_name_unchecked().capella_enabled() { |
There was a problem hiding this comment.
I've moved this check up to process_block/per_block_processing so that this function doesn't just no-op in case Capella is disabled. We should not be calling process_withdrawals prior to Capella, that is a serious error.
|
Ready for review! |
|
Some required checks have failed. Could you please take a look @michaelsproul? 🙏 |
eserilev
left a comment
There was a problem hiding this comment.
Feel free to take it or leave it with the nits
|
Gonna avoid linking to the specs because I find these links always go stale and become useless. I think we could say "equivalent to |
|
Ready for re-review. There are quite a lot of TODOs, but these are mostly reminders for us to make changes at the next spec release. |
eserilev
left a comment
There was a problem hiding this comment.
nice, LGTM!
Do we wait until after the 8.1 release to merge this?
|
Sounds like alpha.2 is being released early next week. Might make sense to wait on that and make some of the TODO changes before merging |
|
I wouldn't mind just merging this now seeing as it's ready, and then a small PR for alpha.2 |
Merge Queue Status🚫 The pull request has left the queue (rule: This pull request spent 1 hour 29 minutes 8 seconds in the queue, including 1 hour 27 minutes 8 seconds running CI. Required conditions to merge
ReasonThe merge conditions cannot be satisfied due to failing checks HintYou may have to fix your CI before adding the pull request to the queue again. |
|
@mergify requeue |
✅ The queue state of this pull request has been cleaned. It can be re-embarked automatically |
Merge Queue Status✅ The pull request has been merged at 1f4a43e This pull request spent 31 minutes 11 seconds in the queue, including 29 minutes 47 seconds running CI. Required conditions to merge
|
Co-Authored-By: Michael Sproul <michael@sigmaprime.io> Co-Authored-By: Michael Sproul <michaelsproul@users.noreply.github.com>
This PR implements the Gloas logic for withdrawals and refactors the Capella/Electra logic to match the refactored spec. There should be no consensus changes for the versions prior to Gloas (just refactoring).